input n values to the list